package com.school.gmz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("sechand") // mybatis-plus
@ApiModel(description = "二手商品实体") // 描述实体的用途
@Data
public class SecHand {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID", notes = "二手商品的唯一标识", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Integer id;

    @ApiModelProperty(value = "名称", notes = "二手商品的名称", position = 2)
    private String name;

    @ApiModelProperty(value = "价格", notes = "二手商品的价格", position = 3)
    private Integer money;
}